import { createApp } from 'vue';
import 'virtual:svg-icons-register';
import 'default-passive-events'; // 去除touchstart谷歌提示
import App from './App.vue';
import ElementPlus from 'element-plus';
import locale from 'element-plus/lib/locale/lang/zh-cn'; // 设置中文

import 'element-plus/dist/index.css';
import ElIcon from './plugins/ElIcon';
import request from '@/utils/request';
import './assets/style.css';
import './assets/qyui.css';
import lodash from 'lodash';
import ContextMenu from '@/components/ContextMenu/index.js';
import svgIcon from '@/components/SvgIcon/index.vue';

const app = createApp(App);
app.config.globalProperties.$http = request;
app.config.globalProperties.$lodash = lodash;

app.config.unwrapInjectedRef = true;

app.use(ElementPlus, { size: 'small', locale });
app.use(ElIcon);
app.use(ContextMenu);
app.component('SvgIcon', svgIcon);
app.mount('#app');
